$( document ).ready(function() {
	$('.manualScan').on('click',function(event){
		var divContent = $('#ajaxResult').html();
		$('#ajaxResult').html('').addClass('loading');
		$.ajax({
			url:'/supportSites/manuelscan.php',
			success: function(data){
				$('#ajaxResult').html(divContent).removeClass('loading');
				window.location.href = '/computerlist.php';
			}
		});
	});
	
	$('.manScanID').on('click',function(event){
		var divContent = $('#ajaxResult').html();
		var PCID = $('#ajaxResult input').val();
		$('#ajaxResult').html('').addClass('loading');
		$.ajax({
			url:'/supportSites/manuelscanid.php?PC_ID='+PCID,
			success: function(data){
				$('#ajaxResult').html(divContent).removeClass('loading');
				window.location.href = '/showpc.php?PC_ID='+PCID;
		}
		});
	});
});